#include <stdio.h>

int main()
{
	char str[]="hello";

	int results = 0, i;

	for (i=0; str[i]; i++) {
		printf ("\n%d", str[i] - 'a');
		if(results & ((1 << (str[i] - 'a')))) {
			printf ("\n%c", str[i]);
			return -1;
		} else
			results |= (1 << (str [i] - 'a'));
	}


	return 0;
}
